package org.zzz.hepotaiya.container;

import org.zzz.hepotaiya.exception.BatchLoadException;

/**
 * コンテナ代理クラス 
 *
 */
public class ContainerImpl implements IContainer {

	/*
	 * (non-Javadoc)
	 * @see org.zzz.hepotaiya.container.IContainer#getObject(java.lang.Class)
	 */
	public Object getObject(Class clazz) throws Exception {
		try {
			return clazz.newInstance();
		} catch (Exception e) {
			throw new BatchLoadException(e);
		}
	}

	/*
	 * (non-Javadoc)
	 * @see org.zzz.hepotaiya.container.IContainer#getObject(java.lang.String)
	 */
	public Object getObject(String componentName) throws Exception {
		return null;
	}
}
